                       <div class="row">
                            <foreach name="datas" item="value">
                                <div class="col-sm-6 ">
                                    <div class="the-box div_box">
                                        <h4 class="small-title" style="color:white;text-decoration:underline">
                                        项目名称:【{$value.project_name}】
                                        </h4>
                                        <table style="width:100%;">
                                            <tr>
                                                <th>项目编号:</th>
                                                <td>{$value.project_id}</td>
                                            </tr>
                                            <tr>
                                                <th>项目简介:</th>
                                                <td>{$value.project_description}</td>
                                            </tr>
                                            <tr>
                                                <th>开始时间:</th>
                                                <td>{$value.project_startTime}</td>
                                            </tr>
                                            <tr>
                                                <th>结束时间</th>
                                                <td>{$value.project_endTime}</td>
                                            </tr>
                                            <tr>
                                                <th>负责人</th>
                                                <td>{$value.project_leader }</td>
                                            </tr>
                                            <tr>
                                                <td colspan=2>
                                                    <span class="save" name="{$value.project_id}">修改</span>|<span class="delete" id="{$value.project_id}">删除</span>
                                                </td>                                                
                                            </tr>
                                        </table>
                                        <!-- <div id="c3-bar" style="height: 300px;"></div> -->
                                    </div><!-- .the-box  -->
                                </div><!-- /.col-sm-6 -->
                            </foreach>
                       </div>
                       <div><ul class="pagination success">{$rs.show}</ul></div>

    <script type="text/javascript">
    $(".current").css({background:"#8CC152",color:"white"});
    $(".save").click(function(){
        var id = $(this).attr("name");        
        $.ajax({
            url:"__URL__/to_update",
            data:{"project_id":id},
            type:"get",
            success:function(data){

                $(".div1").css({display:"none"});
                $("#hl").html(data);
            }
        });
    });

     $(".delete").on("click",function(){
        var id = $(this).attr("id");
        var photo = $(this).attr("name");
        if(confirm("确认删除?")){
        $.ajax({
            url:"__URL__/delAct",
            data:{"audience_id":id,"audience_portrait":photo},
            type:"post",
            success:function(data){
               window.location="__SELF__";

            }
        })
        }
     });


//js添加背景颜色
var arr_color = Array("#434A54","#8CC152","#E9573F","#F6BB42","#AAB2BD","#37BC9B","#434A54","#8CC152","#E9573F","#F6BB42");
    for(var i=0;i<$(".div_box").length;i++){
        $(".div_box:eq("+i+")").css({background:arr_color[i],color:"white"})
    }
</script>